User Guides > PCC with Legacy Services (Proxy Server) > Integrating with Your Application > Configuring Flash Viewer Samples |
Prizm Content Connect supports real-time processing of documents and can be integrated with your existing applications.
After you have installed Prizm Content Connect, insert the following files into your code for complete integration:
This is the file that calls the ViewerEnterprise.swf and passes document location along with the Viewer display properties.
This is also the file containing the logic for viewing the documents. ViewerEnterprise.swf makes AJAX calls to Conversion File mentioned below.
settingsenterprise.xml file is used by ViewerEnterprise.swf and contains installation location, location for a temp directory where swf file will be generated, and conversion file url.
settingsenterprise.xml file can also be passed to viewer as a flash variable XMLSettingsURL. |
For asp.net sample code, settingsenterprise.xml would look like this:
XML |
Copy Code
|
---|---|
<settings> |
For php sample code, settingsenterprise.xml would look like this:
XML |
Copy Code
|
---|---|
<settings> |
Conversion file is called from ViewerEnterprise.swf and performs actual conversion.
Conversion file accepts document as a GET parameter and returns generated SWF file name.
Arguments: fileName, documentname, pageNumber, instanceid
Returns: SWFFile=generatedfile.swf
Or SWFFile=Error (in case of error or other problems)
Arguments are only available as GET parameter. |
You can call convert2swf utility from within your application code by applying:
VB.NET |
Copy Code
|
---|---|
<%@ Page Language="VB" Debug="true" %> <%@ Import Namespace="System.IO" %> '--------------------------------------------------------------------
'original document location Dim tempLocation As String = PccConfig.TempFolder '**Document to be viewed. Just pass the document name** If document Is Nothing Then ' get document extension. Will be used if document being passed is a url ' Download file, if url is passed
Dim UniqueFileIdHash As String = PccCommon.getFileHash(documentLocation + document) If Not System.IO.File.Exists(targetSwfLocationPage1) Then Try |